﻿using RPAVIEW.util;
using SUNRPA.CONTROLS.IMPL.domain.constant;
using SUNRPA.CONTROLS.IMPL.domain.flowItemParam;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using System;
using System.Collections.Generic;
using System.Windows.Controls;

namespace RPAVIEW.views.EditPage.flows.CreateDirN{

    public partial class Output:BaseParamViewAction{
        public Output(){
            InitializeComponent();
        }

        public override void UpdateSource(){
            CreateDirNParam param = ParamUtil.GetCurrentParam<CreateDirNParam>();
            ParamUtil.DefineVar(DefaultContents.RUNNING_PARAM, this.outVarName.Text, typeof(StringModel), param.OutVarName);
            this.outVarName.GetBindingExpression(TextBox.TextProperty).UpdateSource();
        }
    }
}
